/*
 * Copyright (c) 2014 laidian. All Rights Reserved.
 * 
 * @author yaoyuming
 * 
 * @date 2019-12-10 16:58
 */
package com.yao.common.enums;

/**
 * 系统错误
 * 
 * @author yaoyuming
 * @date 2019/12/10 16:58
 */
public enum SysErrorEnum implements IErrorEnum {
    /**
     * 系统未知异常
     */
    ERROR(-1, "服务端程序执行异常，请检查"),

    PARAMETER_ERROR(-2, "校验的对象不允许为空"),

    USER_EXPIRED(-3, "登陆失效，请重新登陆"),

    /**
     * 成功
     */
    SUCCESS(0, "SUCCESS");

    int errCode;

    String errDesc;

    SysErrorEnum(int errCode, String errDesc) {
        this.errCode = errCode;
        this.errDesc = errDesc;
    }

    @Override
    public int getErrCode() {
        return errCode;
    }

    @Override
    public String getErrDesc() {
        return errDesc;
    }
}